public class Main {
    public static void main(String[] args) {
        Dog dog = new Dog(); //通过new实例化对象
        dog.name = "阿黄"; // 访问类中的成员变量/属性
        dog.color = "黑黄";
        dog.barks(); // 访问类中的成员方法
        dog.wag();

        Dog dogs = new Dog();
        dogs.name = "阿黄";
        dogs.color = "黑黄";
        dogs.barks();
        dogs.wag();
    }
}
